#include<iostream.h>
class Date1
{
public:
	Date1(int,int,int);
	Date1()
	{cout<<"Default constructor called.\n";}
	~Date1()
	{
		cout<<"Destructor called.\t"<<day<<endl;
	}
		void Print();
private:
	int year,day,month;
	
};
Date1::Date1(int y,int m,int d)
{
	year=y;
	month=m;
	day=d;
	cout<<"Constructor called.\n";
}
void Date1::Print()
{
	cout<<year<<"/"<<month<<'/'<<day<<endl;
}
void main()
{
	static Date1 d1;
	Date1 d2(2005,6,25);
	cout<<"d1 is";
	d1.Print();
	cout<<"d2 is";
	d2.Print();
}